#!/usr/bin/env node

const EventEmitter = require('events');

const util = require('util');

function Radio(station) {
  EventEmitter.call(this);
  this.station = station;
  setTimeout(() => {
    this.emit('play', this.station);
  }, 0);
  setTimeout(() => {
    this.emit('stop', this.station);
  }, 5000);
}

Radio.prototype = Object.create(EventEmitter.prototype);
Radio.prototype.constructor = Radio;

module.exports = Radio;